package com.alvin.mock.controller;

import com.alvin.mock.dao.model.TUser;
import com.alvin.mock.service.IUserBizService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cc7
 */
@RestController
public class UserController {

    @Resource
    private IUserBizService userService;


    @GetMapping("/get/{id}")
    public TUser getUser(@PathVariable("id") Long id) {
        return userService.getUserById(id);
    }
}
